package logtest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * @Author: sun
 * @Description:演示lobback的使用
 * @Data: create in 12:26 2018/12/10
 * @Modfied by:
 */
public class LogBack {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    public static void main(String[] args) {
        LogBack logback = new LogBack();
        logback.testLog();
    }

    public void testLog() {
        logger.debug("print debug log.");
        logger.info("print info log.");
        logger.error("print error log.");
    }
}
